﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TiposComuns.Objectos
{
    [Serializable]
    public class NewFriendPost : Post
    {
        private Person requester;
        private Person accepter;
    
        public Person Requester
        {
            get { return this.requester.Clone(); }
            set { this.requester = value.Clone(); }
        }

        public Person Accepter
        {
            get { return this.accepter.Clone(); }
            set { this.accepter = value.Clone(); }
        }

        public new NewFriendPost Clone()
        {
            NewFriendPost np = new NewFriendPost();
            np.accepter = this.accepter.Clone();
            np.requester = this.requester.Clone();
            np.Date = base.Date;
            np.ID = base.ID.Clone();
            np.Message = base.Message;
            np.User = base.User;

            return np;
        }
    }
}
